import request from '../utils/request.js';



// 获取用户收藏课程
export const getUserCollectList = (params) => {
	return request({
		url: `/web/usercollect/getUserCollectList`,
		method: 'get',
		params
	})
}

// 登录
export const postLogin = (data) => {
	return request({
		url: `/login`,
		method: 'post',
		data
	})
}

// 获取用户信息
export const getInfo = () => {
	return request({
		url: `/getInfo`,
		method: 'get',
	})
}


// 修改用户信息
export const changeinfo = (data) => {
	return request({
		url: `/web/user/changeinfo`,
		method: 'post',
		data
	})
}

// 修改用户密码
export const changepwd = (data) => {
	return request({
		url: `/web/user/changepwd`,
		method: 'post',
		data
	})
}

